package com.javacoo.xservice.base.support.swaparea.internal;

import java.util.Optional;

import com.javacoo.xservice.base.support.swaparea.SwapArea;
import com.javacoo.xservice.base.support.swaparea.SwapAreaData;

/**
 * 默认数据交换区实现
 * <p>说明:</p>
 * <li></li>
 * @author DuanYong
 * @since 2017年6月30日上午10:07:44
 */
public class DefaultSwapArea implements SwapArea {
	/**
	 * 数据交换区数据
	 */
	private SwapAreaData swapAreaData;
	@Override
	public Optional<SwapAreaData> getSwapAreaData() {
		return Optional.ofNullable(swapAreaData);
	}

	@Override
	public void setSwapAreaData(SwapAreaData swapAreaData) {
		this.swapAreaData = swapAreaData;
	}
    


}
